<template>
  <!-- Statistics 人效统计 -->
  <div class="statt">
    <!-- 头部信息 -->
    <el-row :gutter="20">
      <el-col :span="12"
        ><div class="grid-content bg-purple">
          <Card :cardone="cardone"/></div
      ></el-col>
      <el-col :span="12"><div class="grid-content bg-purple">
         <Card :cardone="cardtwo"/>
        </div></el-col>
    </el-row>
    <!-- 底部图形化 -->
    <el-row :gutter="20" class="stabb">
      <el-col :span="16"><div class="grid-content bg-purple">
        <Imaging/>
        </div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple">
        <Ranking/>
        </div></el-col>
    </el-row>
  </div>
</template>

<script>
import Card from '../plug-in/card.vue'
import Ranking from '../plug-in/Ranking.vue'
import Imaging from '../plug-in/Imaging.vue'
import { taskReportInfo } from '@/api/personnel'
export default {
  name: 'StariS',
  components: { Card, Ranking, Imaging },
  data () {
    return {
      workLi: {
        start: '2020-10-01 00:00:00',
        end: '2022-10-31 00:00:00'
      },
      cardone: {}, // 第一个
      cardtwo: {} // 第二个
    }
  },
  async created () {
    const arr = await taskReportInfo(this.workLi)
    this.cardone = arr[0]
    this.cardtwo = arr[1]
    // console.log(arr);
  }
}
</script>

<style lang="scss" scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #fff;
}
.bg-purple {
  background: #fff;
}
.bg-purple-light {
  background: #fff;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.statt {
  margin: 10px;
  .grid-content[data-v-c26a6762] {
    height: 35vh;
  }
}
.stabb {
  .grid-content[data-v-c26a6762] {
    height: 65vh;
  }
}
</style>
